<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Listing ScamapEstacion Items</title>
            <link rel="stylesheet" type="text/css" href="/MinamWebOK/faces/jsfcrud.css" />
        </head>
        <body>
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h1>Listing ScamapEstacion Items</h1>
            <h:form styleClass="jsfcrud_list_form">
                <h:outputText escape="false" value="(No ScamapEstacion Items Found)<br />" rendered="#{scamapEstacion.pagingInfo.itemCount == 0}" />
                <h:panelGroup rendered="#{scamapEstacion.pagingInfo.itemCount > 0}">
                    <h:outputText value="Item #{scamapEstacion.pagingInfo.firstItem + 1}..#{scamapEstacion.pagingInfo.lastItem} of #{scamapEstacion.pagingInfo.itemCount}"/>&nbsp;
                    <h:commandLink action="#{scamapEstacion.prev}" value="Previous #{scamapEstacion.pagingInfo.batchSize}" rendered="#{scamapEstacion.pagingInfo.firstItem >= scamapEstacion.pagingInfo.batchSize}"/>&nbsp;
                    <h:commandLink action="#{scamapEstacion.next}" value="Next #{scamapEstacion.pagingInfo.batchSize}" rendered="#{scamapEstacion.pagingInfo.lastItem + scamapEstacion.pagingInfo.batchSize <= scamapEstacion.pagingInfo.itemCount}"/>&nbsp;
                    <h:commandLink action="#{scamapEstacion.next}" value="Remaining #{scamapEstacion.pagingInfo.itemCount - scamapEstacion.pagingInfo.lastItem}"
                                   rendered="#{scamapEstacion.pagingInfo.lastItem < scamapEstacion.pagingInfo.itemCount && scamapEstacion.pagingInfo.lastItem + scamapEstacion.pagingInfo.batchSize > scamapEstacion.pagingInfo.itemCount}"/>
                    <h:dataTable value="#{scamapEstacion.scamapEstacionItems}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="IdEsta"/>
                            </f:facet>
                            <h:outputText value="#{item.idEsta}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="VNomEsta"/>
                            </f:facet>
                            <h:outputText value="#{item.VNomEsta}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="NLonGeo"/>
                            </f:facet>
                            <h:outputText value="#{item.NLonGeo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="NLatGeo"/>
                            </f:facet>
                            <h:outputText value="#{item.NLatGeo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="NAltitud"/>
                            </f:facet>
                            <h:outputText value="#{item.NAltitud}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="NUtm18X"/>
                            </f:facet>
                            <h:outputText value="#{item.NUtm18X}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="NUtm18Y"/>
                            </f:facet>
                            <h:outputText value="#{item.NUtm18Y}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="VUbicacion"/>
                            </f:facet>
                            <h:outputText value="#{item.VUbicacion}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="CodiDepaDpt"/>
                            </f:facet>
                            <h:outputText value="#{item.codiDepaDpt}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="CodiProvTpr"/>
                            </f:facet>
                            <h:outputText value="#{item.codiProvTpr}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="CodiDistTdi"/>
                            </f:facet>
                            <h:outputText value="#{item.codiDistTdi}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="IdTipoesta"/>
                            </f:facet>
                            <h:outputText value="#{item.idTipoesta}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="IdEstado"/>
                            </f:facet>
                            <h:outputText value="#{item.idEstado}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="IdTrans"/>
                            </f:facet>
                            <h:outputText value="#{item.idTrans}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="IdResp"/>
                            </f:facet>
                            <h:outputText value="#{item.idResp}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="IdInstitucion"/>
                            </f:facet>
                            <h:outputText value="#{item.idInstitucion}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="VCodOrigen"/>
                            </f:facet>
                            <h:outputText value="#{item.VCodOrigen}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="IdUser"/>
                            </f:facet>
                            <h:outputText value="#{item.idUser}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText escape="false" value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink value="Show" action="#{scamapEstacion.detailSetup}">
                                <f:param name="jsfcrud.currentScamapEstacion" value="#{jsfcrud_class['pe.com.minam.jsp.controller.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][scamapEstacion.converter].jsfcrud_invoke}"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="Edit" action="#{scamapEstacion.editSetup}">
                                <f:param name="jsfcrud.currentScamapEstacion" value="#{jsfcrud_class['pe.com.minam.jsp.controller.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][scamapEstacion.converter].jsfcrud_invoke}"/>
                            </h:commandLink>
                            <h:outputText value=" "/>
                            <h:commandLink value="Destroy" action="#{scamapEstacion.remove}">
                                <f:param name="jsfcrud.currentScamapEstacion" value="#{jsfcrud_class['pe.com.minam.jsp.controller.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][scamapEstacion.converter].jsfcrud_invoke}"/>
                            </h:commandLink>
                        </h:column>

                    </h:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{scamapEstacion.createSetup}" value="New ScamapEstacion"/>
                <br />
                <br />
                <h:commandLink value="Index" action="welcome" immediate="true" />


            </h:form>
        </body>
    </html>
</f:view>
